/* ============================================
   管理后台样式文件
   Three.js Project Admin Panel Styles
   版本: 2.0.0
   ============================================ */

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

/* ============================================
   登录界面样式
   ============================================ */
.login-container {
    min-height: 100vh;
    display: none; /* 默认隐藏，避免页面刷新时闪烁 */
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-container.active {
    display: flex; /* 激活时显示为 flex */
}

.login-box {
    background: white;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.login-box h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.error-message {
    color: #e53e3e;
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
    padding: 10px;
    background: #fed7d7;
    border-radius: 6px;
    display: none;
}

/* ============================================
   管理界面样式
   ============================================ */
.admin-container {
    display: none; /* 默认隐藏 */
    min-height: 100vh;
}

.admin-container.active {
    display: block; /* 激活时显示 */
}

.header {
    background: white;
    padding: 20px 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    color: #333;
    font-size: 24px;
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.user-info {
    color: #666;
    font-size: 14px;
}

.main-content {
    display: flex;
    flex: 1;
}

/* ============================================
   侧边栏样式
   ============================================ */
.sidebar {
    width: 250px;
    background: white;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
    padding: 30px 0;
}

.nav-item {
    padding: 15px 30px;
    color: #666;
    text-decoration: none;
    display: block;
    transition: all 0.3s;
    border-left: 3px solid transparent;
    cursor: pointer;
}

.nav-item:hover,
.nav-item.active {
    background: #f8f9ff;
    color: #667eea;
    border-left-color: #667eea;
}

/* ============================================
   内容区域样式
   ============================================ */
.content-area {
    flex: 1;
    padding: 30px;
    background: #f8f9ff;
}

.section {
    display: none;
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.section.active {
    display: block;
}

.section h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 20px;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

/* ============================================
   配置表单样式
   ============================================ */
.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.config-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    background: #f8f9ff;
}

.config-item h3 {
    color: #4a5568;
    margin-bottom: 15px;
    font-size: 16px;
}

.config-field {
    margin-bottom: 15px;
}

.config-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #2d3748;
    font-size: 14px;
}

.config-field input,
.config-field select,
.config-field textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.config-field input:focus,
.config-field select:focus,
.config-field textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.config-field input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

.config-field input[type="range"] {
    width: 100%;
}

.range-value {
    font-weight: 600;
    color: #667eea;
    font-size: 14px;
}

/* ============================================
   按钮样式
   ============================================ */
.btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5a67d8;
    transform: translateY(-1px);
}

.btn-primary:disabled {
    background: #cbd5e0;
    color: #a0aec0;
    cursor: not-allowed;
    transform: none;
}

.btn-logout {
    background: #e53e3e;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.btn-logout:hover {
    background: #c53030;
}

.btn-save {
    background: #38a169;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-save:hover {
    background: #2f855a;
}

.btn-reset {
    background: #ed8936;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-reset:hover {
    background: #dd6b20;
}

.btn-preview {
    background: #667eea;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-preview:hover {
    background: #5a67d8;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 5px;
    transition: all 0.3s;
}

.btn-edit {
    background: #667eea;
    color: white;
}

.btn-edit:hover {
    background: #5a67d8;
}

.btn-delete {
    background: #e53e3e;
    color: white;
}

.btn-delete:hover {
    background: #c53030;
}

.btn-switch {
    background: #38a169;
    color: white;
}

.btn-switch:hover {
    background: #2f855a;
}

.btn-move {
    background: #667eea;
    color: white;
}

.btn-move:hover {
    background: #5a67d8;
}

.btn-move:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    opacity: 0.5;
}

.actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

/* ============================================
   数据表格样式
   ============================================ */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.data-table th,
.data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.data-table th {
    background: #f8f9ff;
    font-weight: 600;
    color: #2d3748;
}

.data-table tr:hover {
    background: #f8f9ff;
}

.project-name-link {
    cursor: pointer;
    color: #667eea;
    transition: all 0.2s;
}

.project-name-link:hover {
    color: #5a67d8;
    text-decoration: underline;
}

.selected-row {
    background-color: #f0f4ff !important;
    border-left: 3px solid #667eea;
}

.selected-row:hover {
    background-color: #e8edff !important;
}

/* ============================================
   徽章样式
   ============================================ */
.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.badge-default {
    background: #38a169;
    color: white;
}

.badge-current {
    background: #667eea;
    color: white;
}

/* ============================================
   Toast 通知样式
   ============================================ */
#toastContainer {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10003;
    max-width: 350px;
    pointer-events: none; /* 容器不拦截鼠标事件 */
}

.toast {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease-out;
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: auto; /* Toast本身可以接收鼠标事件 */
}

.toast-success {
    background: #f0fff4;
    color: #38a169;
    border-left: 4px solid #38a169;
}

.toast-error {
    background: #fed7d7;
    color: #e53e3e;
    border-left: 4px solid #e53e3e;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* ============================================
   自定义确认对话框样式
   ============================================ */
#confirmDialog {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10002;
    align-items: center;
    justify-content: center;
}

#confirmDialog.active {
    display: flex;
}

.confirm-box {
    background: white;
    border-radius: 12px;
    padding: 0;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: confirmSlideIn 0.3s ease-out;
}

@keyframes confirmSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.confirm-header {
    padding: 20px 25px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.confirm-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.confirm-icon.warning {
    background: #fff3cd;
    color: #856404;
}

.confirm-icon.danger {
    background: #f8d7da;
    color: #721c24;
}

.confirm-icon.info {
    background: #d1ecf1;
    color: #0c5460;
}

.confirm-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
    flex: 1;
}

.confirm-body {
    padding: 25px;
    color: #555;
    font-size: 15px;
    line-height: 1.6;
    white-space: pre-line;
}

.confirm-footer {
    padding: 15px 25px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.confirm-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.confirm-btn-cancel {
    background: #e2e8f0;
    color: #666;
}

.confirm-btn-cancel:hover {
    background: #cbd5e0;
}

.confirm-btn-confirm {
    background: #667eea;
    color: white;
}

.confirm-btn-confirm:hover {
    background: #5a67d8;
}

.confirm-btn-confirm.danger {
    background: #e53e3e;
}

.confirm-btn-confirm.danger:hover {
    background: #c53030;
}

/* ============================================
   提示框样式
   ============================================ */
.alert {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success {
    background: #f0fff4;
    color: #38a169;
    border: 1px solid #9ae6b4;
}

.alert-error {
    background: #fed7d7;
    color: #e53e3e;
    border: 1px solid #feb2b2;
}

/* ============================================
   加载动画
   ============================================ */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hidden {
    display: none !important;
}

/* ============================================
   响应式设计
   ============================================ */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        order: 2;
    }

    .content-area {
        order: 1;
    }

    .config-grid {
        grid-template-columns: 1fr;
    }

    .header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .header-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-logout {
        width: 100%;
    }
}

/* ============================================
   账号管理样式
   ============================================ */

/* 账号管理区域 */
.account-management-section {
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 20px;
    margin-bottom: 20px;
}

/* 数据表格样式 */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.data-table thead {
    background: #f8fafc;
}

.data-table thead th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
    border-bottom: 1px solid #e5e7eb;
}

.data-table tbody tr {
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.2s ease;
}

.data-table tbody tr:hover {
    background-color: #f9fafb;
}

.data-table tbody tr:last-child {
    border-bottom: none;
}

.data-table tbody td {
    padding: 12px 16px;
    font-size: 14px;
    color: #374151;
    vertical-align: middle;
}

.data-table tbody td:first-child {
    font-weight: 500;
}

/* 状态徽章样式 */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
}

.badge-primary {
    background-color: #dbeafe;
    color: #1e40af;
}

.badge-success {
    background-color: #dcfce7;
    color: #166534;
}

.badge-warning {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-danger {
    background-color: #fee2e2;
    color: #dc2626;
}

/* 小按钮样式 */
.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    margin-right: 6px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.btn-sm:last-child {
    margin-right: 0;
}

.btn-edit {
    background-color: #667eea;
    color: white;
}

.btn-edit:hover {
    background-color: #5a67d8;
    transform: translateY(-1px);
}

.btn-delete {
    background-color: #f56565;
    color: white;
}

.btn-delete:hover {
    background-color: #e53e3e;
    transform: translateY(-1px);
}

.btn-success {
    background-color: #48bb78;
    color: white;
}

.btn-success:hover {
    background-color: #38a169;
    transform: translateY(-1px);
}

/* 账号管理专用模态框样式 */
#createUserAccountModal .modal-content,
#createAdminAccountModal .modal-content,
#editAccountModal .modal-content {
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 表单分组样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #374151;
    font-weight: 600;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 警告信息样式 */
.warning-box {
    padding: 12px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    font-size: 13px;
    color: #b91c1c;
    margin-top: 15px;
}

.warning-box strong {
    font-weight: 600;
}

/* 分隔线样式 */
hr {
    margin: 30px 0;
    border: none;
    border-top: 1px solid #e5e7eb;
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}

/* 加载状态样式 */
.loading-state {
    text-align: center;
    padding: 40px;
    color: #6b7280;
}

/* 错误状态样式 */
.error-state {
    text-align: center;
    padding: 40px;
    color: #ef4444;
}

/* 响应式账号管理 */
@media (max-width: 768px) {
    .account-management-section {
        margin: 0 -10px;
        padding: 15px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .data-table {
        font-size: 12px;
    }
    
    .data-table thead th,
    .data-table tbody td {
        padding: 8px 12px;
    }
    
    .btn-sm {
        padding: 4px 8px;
        font-size: 11px;
        margin-right: 4px;
    }
}

@media (max-width: 640px) {
    /* 在小屏幕上隐藏部分列 */
    .data-table th:nth-child(3),
    .data-table th:nth-child(4),
    .data-table td:nth-child(3),
    .data-table td:nth-child(4) {
        display: none;
    }
}

/* ============================================
   资源管理样式
   ============================================ */

/* 资源标签切换器 */
.resource-tab {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
    margin-right: 5px;
}

.resource-tab:hover {
    color: #667eea;
    background: #f8f9fa;
}

.resource-tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
    font-weight: 600;
}

/* 资源标签内容 */
.resource-tab-content {
    display: none;
}

.resource-tab-content.active {
    display: block;
    animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 资源表格样式增强 */
.resource-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.resource-table thead {
    background: #f8fafc;
}

.resource-table thead th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
    border-bottom: 2px solid #e5e7eb;
}

.resource-table tbody tr {
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.2s ease;
}

.resource-table tbody tr:hover {
    background-color: #f9fafb;
    transform: translateX(2px);
}

.resource-table tbody tr:last-child {
    border-bottom: none;
}

.resource-table tbody td {
    padding: 14px 16px;
    font-size: 14px;
    color: #374151;
    vertical-align: middle;
}

/* 状态徽章 */
.status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge.used {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.unused {
    background: #fee2e2;
    color: #991b1b;
}

/* 依赖按钮 */
.btn-dependency {
    padding: 5px 12px;
    background: #e0e7ff;
    color: #3730a3;
    border: 1px solid #c7d2fe;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-dependency:hover {
    background: #c7d2fe;
    transform: translateY(-1px);
}

/* 依赖标签 */
.dependency-tag {
    display: inline-block;
    padding: 4px 8px;
    background: #f3f4f6;
    border-radius: 4px;
    font-size: 12px;
    color: #6b7280;
    margin: 2px;
}

/* 资源详情弹窗 */
.resource-detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.resource-detail-content {
    background: white;
    border-radius: 12px;
    padding: 0;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease-out;
}

.resource-detail-header {
    padding: 20px 25px;
    border-bottom: 2px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.resource-detail-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.resource-detail-body {
    padding: 25px;
}

.dependency-section {
    margin-bottom: 25px;
}

.dependency-section h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f3f4f6;
}

.dependency-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dependency-list li {
    padding: 10px 12px;
    background: #f9fafb;
    border-radius: 6px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dependency-list li:last-child {
    margin-bottom: 0;
}

/* 项目选择器下拉框样式 */
#resourceProjectSelector {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23667eea' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

/* 场景子Tab样式 */
.scene-sub-tab {
    display: inline-block;
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
    margin-right: 5px;
}

.scene-sub-tab:hover {
    color: #667eea;
    background: #f8f9fa;
}

.scene-sub-tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
    font-weight: 600;
}

/* 场景内容区域 */
.scene-content {
    display: none;
}

.scene-content.active {
    display: block;
    animation: fadeInUp 0.3s ease-out;
}

/* 性能指标卡片 */
.performance-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.metric-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.2s ease;
}

.metric-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.metric-label {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 8px;
    font-weight: 500;
}

.metric-value {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 4px;
}

.metric-status {
    font-size: 11px;
    color: #9ca3af;
}

.metric-status.good {
    color: #10b981;
}

.metric-status.warning {
    color: #f59e0b;
}

.metric-status.danger {
    color: #ef4444;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .resource-tab {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .scene-sub-tab {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .resource-table thead th,
    .resource-table tbody td {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .resource-detail-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .performance-metrics {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
}

